import React from 'react'
import { connect } from 'react-redux'
import { addAction } from './store/actions'
import { Outlet } from 'react-router-dom'
function App(props) {
  return (
    <div>
      <Outlet></Outlet>
    </div>
  )
}



const getState = (state) => {
  return {
    num: state.num
  }
}

const putDispatch = (dispatch) => {
  return {
    add() {
      dispatch(addAction())
    }
  }
}


export default connect(getState, putDispatch)(App)